﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using control.Biz;
using System.Collections.Generic;

public partial class find : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["TenSach"] != null && Request.QueryString["IDChuDe"] != null)
        {
            string _TenSach = Request.QueryString["TenSach"].ToString();
            int _IDChuDe = int.Parse(Request.QueryString["IDChuDe"].ToString());
            List<BizSach> saches = new List<BizSach>();
            saches = BizSach.Find(_TenSach, _IDChuDe);
            category1.Saches = saches;
            category1.TieuDe = "Kết Quả Tìm Kiếm";
        }
        else
        {
            category1.Saches = new List<BizSach>();
            category1.TieuDe = "Kết Quả Tìm Kiếm";
        }
    }
}
